home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / ab20 / ab20_archive / utilities / emulators / apple2emul.lzh / Makefile < prev    next >
Makefile  |  1991-04-18  |  1KB  |  60 lines

  1.  
  2.  
  3. #
  4. #  Use -O if you can.  It gave a 20% speedup on one test.
  5. #
  6. CFLAGS = -O
  7. LIBS   = -lcurses -ltermcap
  8.  
  9. #  If Using 286 Xenix, uncomment the following lines:
  10. # CFLAGS  = -M2l -O
  11. # LARGE   = -LARGE
  12. #
  13. # Make SYSTEM be -DBSD for Berkeley-ish machines, leave blank otherwise
  14. #
  15. SYSTEM = 
  16. #SYSTEM = -DBSD
  17.  
  18.  
  19. OBJECTS =    a2.o table.o jump.o curses.o main.o screen.o \
  20.         mem.o tbl.o parse.o commands.o dos.o cli.o vidout.o \
  21.         disk.o prodos.o
  22.  
  23. a2:    $(OBJECTS)
  24.     cc -o a2 $(CFLAGS) $(OBJECTS) $(LIBS)
  25.  
  26. curses.o:    curses.c
  27.     cc -c $(SYSTEM) $(CFLAGS) curses.c
  28.  
  29. shar:
  30.     -mv ../a2.shar ../a2.shar-
  31.     shar -v Makefile Notes Snarf Cli.doc Todo *.[ch] > ../a2.shar
  32.  
  33. tar:
  34.     -mv ../a2.tar ../a2.tar-
  35.     tar -cvf ../a2.tar [A-Z]* *.[ch]
  36.  
  37. clean:
  38.     rm -f *.o core
  39.  
  40. clobber:    clean
  41.     rm -f a2
  42.  
  43.  
  44. a2.o:        a2.h a2.c
  45.     cc $(LARGE) $(CFLAGS) -c a2.c
  46.  
  47. cli.o:        cli.c a2.h cli.h
  48. commands.o:    commands.c cli.h a2.h
  49. disk.o:        disk.c a2.h
  50. dos.o:        dos.c a2.h
  51. jump.o:        jump.c a2.h
  52. main.o:        main.c a2.h
  53. mem.o:        mem.c a2.h
  54. parse.o:    parse.c cli.h a2.h
  55. pascal.o:    pascal.c a2.h
  56. screen.o:    screen.c a2.h
  57. table.o:    table.c a2.h
  58. tbl.o:        tbl.c cli.h a2.h
  59. vidout.o:    vidout.c a2.h
  60.